//
//  editMyResumeVoiceResume_hiddenSwitch.swift
//  DingDongZP
//
//  Created by 三秒文化 on 16/4/18.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

import UIKit

class editMyResumeVoiceResume_hiddenSwitch: UITableViewCell {

    var titleLab:UILabel?
    var switchBtn:UISwitch?
    var gampView:UIView?
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        backgroundColor = LDGolbalColor.BgGoundGray
        titleLab = UILabel.setDetailsLab("隐藏简历", fontSize: 14, titleColor: LDFontColor.Black, Alignment: .Left)
        switchBtn = UISwitch.init()
        gampView = UIView.init()
        gampView?.backgroundColor = LDFontColor.White
        gampView?.addSubview(titleLab!)
        gampView?.addSubview(switchBtn!)
        addSubview(gampView!)
        gampView?.snp_makeConstraints(closure: { (make) in
            make.top.equalTo(7)
            make.bottom.equalTo(-14)
            make.left.right.equalTo(0)
        })
        titleLab?.snp_makeConstraints(closure: { (make) in
            make.left.equalTo(LDMargin_V*2)
            make.centerY.equalTo(gampView!)
            make.height.equalTo(15)
        })
        switchBtn?.snp_makeConstraints(closure: { (make) in
            make.centerY.equalTo(gampView!)
            make.right.equalTo(-LDMargin_H*2)
        })
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
